package com.bysj.agent.config;

import dev.langchain4j.model.openai.OpenAiChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

//@Component
public class ImageAnalysisModel {

//    @Bean(name = "imageAnalysisModel",value = "imageAnalysisModel")
    public OpenAiChatModel imageAnalysisModel() {
        return OpenAiChatModel.builder()
                .apiKey("sk-a691c2b981cc401e99536eeca9ba7af4")
                .modelName("qwen-vl-max")  // 设置使用的模型名称
                .baseUrl("https://dashscope.aliyuncs.com/compatible-mode/v1")
                .build();
    }
}
